package com.example.t_test_20210621_ArrayToCollection;


/**
 * 泛型约束
 * @param <T>
 */
public class T_Test<T> {

    private T x;

    private T y;


    @Override
    public String toString() {
        return "T_Test{" +
                "x=" + x +
                ", y=" + y +
                '}';
    }

    public T getX() {
        return x;
    }

    public void setX(T x) {
        this.x = x;
    }

    public T getY() {
        return y;
    }

    public void setY(T y) {
        this.y = y;
    }

}
